﻿using System;
using System.Text;
using System.Data;
using System.Data.OleDb;
using System.Collections.Generic;
using System.Reflection;
namespace BLL
{
	 	//SF_u_rorder
		public static class SF_u_rorder
	{	
	    private static Data.SF_u_rorder Data_SF_u_rorder = new Data.SF_u_rorder();	
		
		/// <summary>
        /// 添加
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public static long Add(Model.SF_u_rorder model)
        {
              return Data_SF_u_rorder.Add(model);
        }
         /// <summary>
        /// 修改
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public static int Update(Model.SF_u_rorder model)
        {
            return Data_SF_u_rorder.Update(model);
        }
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        public static bool Delete(long Id)
        {
            return Data_SF_u_rorder.Delete(Id);
        }       
        /// <summary>
        /// 单条
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        public static Model.SF_u_rorder GetModel(long Id)
        {
             return Data_SF_u_rorder.GetModel(Id);
        }
        public static Model.SF_u_rorder GetModelbyorder(string orderno)
        {
            return Data_SF_u_rorder.GetModelbyorder(orderno);
        }
        /// <summary>
        /// 总数据数
        /// </summary>
        /// <returns></returns>
        public static int GetAll_Count()
        {
            return Data_SF_u_rorder.GetAll_Count();
        } 
        /// <summary>
        /// 抽取分页数据
        /// </summary>
        public static List<Model.SF_u_rorder> GetPageList_Where(int pageIndex, int pageSize,out int totalCount)
        {          
             return Data_SF_u_rorder.GetPageList_Where(pageIndex, pageSize, out totalCount);
        }
        public static List<Model.SF_u_rorder> GetPageListBysql(int pageIndex, int pageSize,string sql, out int totalCount)
        {
            return Data_SF_u_rorder.GetPageListBysql(pageIndex, pageSize, sql, out totalCount);
        }
        /// <summary>
        /// 批删
        /// </summary>
        /// <param name="Ids"></param>
        /// <returns></returns>
        public static int Drop(string Ids)
        {
            return Data_SF_u_rorder.Drop(Ids);
        }
	}
}